package com.asterisk;

import java.io.IOException;

import org.asteriskjava.fastagi.AgiServer;
import org.asteriskjava.fastagi.DefaultAgiServer;

import com.Main.MyServiceInterface;

public class FastAgiServer implements MyServiceInterface {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws IllegalStateException 
	 */
	public static void main(String[] args) throws IllegalStateException, IOException {
		 final AgiServer server;

	        server = new DefaultAgiServer();
	        server.startup();
	}

	@Override
	public void startLayer() throws Exception {
		 AgiServer server = new DefaultAgiServer();
	     server.startup();
		
	}

}
